/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package HangHoa;

import java.util.Vector;

/**
 *
 * @author Tuan
 */
public class Quan extends SanPham {
    private double chieuDai;
    private double chieuRong;
    private String kieuOng;
    private final String donVi="Cái";

    public Quan(double chieuDai, double chieuRong, String kieuOng, String maHH, String tenHH, String nhaSX, double giaNhap, double giaBan, String chatLieu) {
        super(maHH, tenHH, nhaSX, giaNhap, giaBan, chatLieu);
        this.chieuDai = chieuDai;
        this.chieuRong = chieuRong;
        this.kieuOng = kieuOng;
         this.setGhiChu();
    }
    public Quan(String str[]){
        super(str);
        this.chieuDai = Double.parseDouble(str[8]);
        this.chieuRong =Double.parseDouble(str[9]);
        this.kieuOng= str[10];
        this.setGhiChu();
    }
    public Quan() {
        super.setDonVi(donVi);
    }

    

//Getter
    public double getChieuDai() {
        return chieuDai;
    }

    public double getChieuRong() {
        return chieuRong;
    }

    public String getKieuOng() {
        return kieuOng;
    }

    public String getDonVi() {
        return donVi;
    }

//Setter
    public void setChieuDai(double chieuDai) {
        this.chieuDai = chieuDai;
    }

    public void setChieuRong(double chieuRong) {
        this.chieuRong = chieuRong;
    }

    public void setKieuOng(String kieuOng) {
        this.kieuOng = kieuOng;
    }
    public void setGhiChu(){
         super.setGhiChu("Chiều dài:"+getChieuDai()+", Chiều Rộng:"+getChieuRong()+", Kiểu :"+getKieuOng());
    }

//Method 
}